package com.scnb.state.car;

public class Car{
   CarState state;

   public Car (CarState state) {
       this.state = state;
   }

   public void openDoor() {
      state.openDoor();
   }

   public void closeDoor() {
     state.closeDoor();
   }

   public void runCar() {
     state.runCar();
   }

   public void stopCar() {
     state.stopCar();
   }

}
